//
//  RootViewController.m
//  UI1_View练习
//
//  Created by dllo on 15/11/6.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "RootViewController.h"

@interface RootViewController ()

@end

@implementation RootViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    
    self.view.backgroundColor = [UIColor grayColor];
    
    UIView *view1 = [[UIView alloc] initWithFrame:CGRectMake(40, 100, 90, 30)];
    view1.backgroundColor = [UIColor redColor];
    [self.view addSubview:view1];
    [view1 release];
    
    UIView *view2 = [[UIView alloc] initWithFrame:CGRectMake(40, 150, 90, 30)];
    view2.backgroundColor = [UIColor redColor];
    [self.view addSubview:view2];
    [view2 release];
    
    UIView *view3 = [[UIView alloc] initWithFrame:CGRectMake(150, 100, 170, 30)];
    view3.backgroundColor = [UIColor blueColor];
    [self.view addSubview:view3];
    [view3 release];
    
    UIView *view4 = [[UIView alloc] initWithFrame:CGRectMake(150, 150, 170, 30)];
    view4.backgroundColor = [UIColor blueColor];
    [self.view addSubview:view4];
    [view4 release];
    
    UIView *view5 = [[UIView alloc] initWithFrame:CGRectMake(40, 200, 70, 30)];
    view5.backgroundColor = [UIColor greenColor];
    [self.view addSubview:view5];
    [view5 release];
    
    UIView *view6 = [[UIView alloc] initWithFrame:CGRectMake(140, 200, 70, 30)];
    view6.backgroundColor = [UIColor greenColor];
    [self.view addSubview:view6];
    [view6 release];
    
    UIView *view7 = [[UIView alloc] initWithFrame:CGRectMake(240, 200, 70, 30)];
    view7.backgroundColor = [UIColor greenColor];
    [self.view addSubview:view7];
    [view7 release];
    
    UILabel *label1 = [[UILabel alloc] initWithFrame:CGRectMake(40, 100, 90, 30)];
    [self.view addSubview:label1];
//    label1.textColor = [UIColor whiteColor];
    [label1 release];
    
    label1.text = @"用户名";
    
    UILabel *label2 = [[UILabel alloc] initWithFrame:CGRectMake(40, 150, 90, 30)];
    [self.view addSubview:label2];
    [label2 release];
    label2.text = @"密码";
    
    
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
